package com.tools.web.http;

import com.tools.common.object.CustomHandler;
import com.tools.common.object.Note;

/**
 * HTTP 异步请求的回调方法
 * */
@Note("异步请求的回调方法")
public abstract class HttpAsyncCallback extends CustomHandler {

    public HttpAsyncCallback() {
    }

    public HttpAsyncCallback(Object parameter) {
        super(parameter);
    }

    public HttpAsyncCallback(Object... parameters) {
        super(parameters);
    }

    public HttpAsyncCallback(Iterable parameters) {
        super(parameters);
    }

    @Override
    public String toString() {
        return "HttpAsyncCallback{" +
                "parameters=" + super.toString() +
                '}';
    }


    public abstract void completed(HttpResult t);

    public abstract void failed(Exception e);

    public abstract void cancelled();
}
